<?

/*
*
*   Excalibur Content Management System
*   Copyright © 2008 Egor "Sontan" Kuryanovich
*
*   Based on Explay Engine v2.0 by Golovdinov Alexander
*
*   Official site: www.excms.ru
*   Contact e-mail: support@excms.ru
*
*   GNU General Public License original source:
*   http://www.gnu.org/licenses/gpl-3.0.html
*
*/

if ($EXCMS != "work") {
	exit;
}



$get_groups = mysql_query ("SELECT * FROM ".DB_PEREFIX."_user_groups ORDER BY id");
$tr = "";

while (list($id, $name) = mysql_fetch ($get_groups)) {
	($id <= 2) ? $edit = "<a href=\"admin.php?name=users&act=groups&edit_group=$id\">редактировать</a>" : $edit = "<a href=\"admin.php?name=users&act=groups&edit_group=$id\">редактировать</a> | <a href=\"admin.php?name=users&act=groups&delete_group=$id\">редактировать</a>";
	
	$tr .= "\n<tr><td class=\"ad_tr\">$name</td><td>$edit</td></tr>";
}

$table = "<center><table width=\"30%\" cellspacing=0 cellpadding=2>$tr</table></center>";
